package com.shadow.mall.order.remote;

import com.shadow.mall.common.core.JsonResult;
import com.shadow.mall.inventory.domain.request.DeductProductStockRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient("shadow-mall-inventory")
public interface InventoryService {

    //扣减库存
    @RequestMapping("inventory/deductProductStockInventory")
    JsonResult<Boolean> deductProductStock(DeductProductStockRequest lockProductStockRequest);
}
